Platform Explorer / Nuxeo Platform 2021.58

Component org.nuxeo.ecm.platform.routing.cleanup.config

Resolution Order

758
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.routing.cleanup.config">

  <extension
    target="org.nuxeo.ecm.platform.scheduler.core.service.SchedulerRegistryService"
    point="schedule">

    <schedule id="workflowInstancesCleanup">
      <eventId>workflowInstancesCleanup</eventId>
      <!-- every day at 11.59 PM -->
      <cronExpression>0 59 23 * * ?</cronExpression>
    </schedule>

  </extension>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent"
    point="listener">
    <listener name="workflowInstancesCleanup" async="true" postCommit="true"
      class="org.nuxeo.ecm.platform.routing.core.listener.DocumentRoutingWorkflowInstancesCleanup">
      <event>workflowInstancesCleanup</event>
    </listener>
  </extension>

  <extension target="org.nuxeo.ecm.core.bulk" point="actions">
    <action name="garbageCollectWokflows" inputStream="bulk/garbageCollectWokflows" bucketSize="100"
      batchSize="25" />
  </extension>

  <extension target="org.nuxeo.runtime.stream.service" point="streamProcessor">
    <!-- GarbageCollectRoute processor -->
    <streamProcessor name="garbageCollectWokflows"
      class="org.nuxeo.ecm.platform.routing.core.bulk.GarbageCollectRoutesAction"
      defaultConcurrency="${nuxeo.bulk.action.garbageCollectWokflows.defaultConcurrency:=2}"
      defaultPartitions="${nuxeo.bulk.action.garbageCollectWokflows.defaultPartitions:=4}">
      <policy name="default" maxRetries="3" delay="500ms" maxDelay="10s" continueOnFailure="false" />
    </streamProcessor>
  </extension>

</component>